Skip to content

Conversation

@afourney
Copy link
Member

Why are these changes needed?

Almost all the tests load a config_list without checking if it actually loaded anything. I noticed this with test_compressible_agent #1072 and #1073, but the problem is pervasive.

If the list is empty, it will silently default to GPT-4, and that's definitely not what we want. As seen here, it masks costly misconfigurations!

Related issue number

#1072 and #1073

Checks

@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (14a9672) 30.14% compared to head (2305dab) 37.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1076      +/-   ##
==========================================
+ Coverage   30.14%   37.71%   +7.56%     
==========================================
  Files          30       30              
  Lines        4020     4020              
  Branches      908      957      +49     
==========================================
+ Hits         1212     1516     +304     
+ Misses       2729     2391     -338     
- Partials       79      113      +34     
Flag Coverage Δ
unittests 37.61% <ø> (+7.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@afourney
Copy link
Member Author

Will fix with #1082

@afourney afourney closed this Dec 28, 2023
@afourney afourney deleted the check_test_config_lists branch February 6, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants